import { createHashRouter } from 'react-router-dom'
import Login from '@/page/Login'
import Month from '@/page/Month'
import Year from '@/page/Year'
import New from '@/page/New'
import NotFound from '@/page/NotFound'
import Layout from '@/page/Layout'
const router = createHashRouter([{
    path: '/',
    element: <Layout></Layout>,
    children: [{
        path: 'month',
        element: <Month/>
    }, {
        path: 'year',
        element: <Year/>
    }, {
        path: '*',
        element: <NotFound></NotFound>
    }]
}, {
    path: 'login',
    element: <Login></Login>
}, {
    path: 'new',
    element: <New/>
}])

export default router